PreviousNextTracker indexSee it online !

(4/185) 9 - JavaScript code completion

Adding JavaScript code completion (sidekick?--not sure
how this is implemented) would make JEdit the ultimate
web developer's tool.

Submitted sez11 - 2006-09-07 15:47:28 Assigned daleanson
Priority 5 Labels
Status open Group None
Resolution None

Comments

2006-09-07 16:20:40
ezust

Logged In: YES
user_id=935841

SideKick has a completion mechanism. XML already has a
JavaScriptSideKick which has no completion yet.

Anyone who wants to work on that should be committing to the
XML plugin SVN. If you volunteer, speak to me about getting
commit privileges.


2006-09-07 18:10:18
daleanson

Logged In: YES
user_id=187628

I've looked at it. It'll take a lot of work, I think.
Right now, the javascript sidekick parser is a few regular
expressions. They do an okay job of parsing javascript, but
it could be better. They are not sufficient to implement
code completion. Really, what's needed is a better parser.
I've looked for a decent javacc parser for javascript, but
haven't found one. I adjusted the html sidekick to delegate
to the css sidekick so in-line <style> tags are parsed into
the html tree, it would be awesome to do the same thing with
with in-line javascript.

2006-09-07 18:26:55
daleanson

- **assigned_to**: nobody --> daleanson

2006-09-07 18:26:55
daleanson

Logged In: YES
user_id=187628

Hmm, I googled again and found a relatively recent jjt file
for ecmascript. I'll add this to my growing list of things
I don't have time for :)

2006-09-26 18:55:46
sez11

Logged In: YES
user_id=927854

If it helps, it looks like Vim 7.0 has JavaScript code
completion. I don't know if the formats are compatible, but
maybe their script could be used?

2007-09-30 18:35:34
kpouer

- **labels**: 871559 -->
- **milestone**: 619623 -->